package cn.anc.aonicardv.media;

import android.view.View;
import android.view.ViewGroup;

import java.io.File;

/**
 * Created by yangdai on 2017/9/7.
 */

public interface MediaController {

    int STATE_IDLE = 0;
    int STATE_PREPARING = 1;
    int STATE_PLAYING = 2;
    int STATE_RESUME = 3;
    int STATE_PAUSED = 4;
    int STATE_COMPLETE = 5;

    void show(int timeout);

    void hide();

    void setMediaPlayer(MediaOperation player);

    void setEnabled(boolean isEnable);

    void setTitle(String title);

    void setExitFullScreenBtnVisibility(boolean isVisibility);

    void setMediaBufferingIndicator(View mediaBufferingIndicator, ViewGroup.LayoutParams layoutParams);

    void setFullScreenBtnVisibility(boolean isVisibility);

    void setThumbnail(String path);

    void updateControllerState(int state);

    boolean isShowing();
}
